<?php
declare (strict_types = 1);

namespace test\service;

use app\admin\model\AdminModel;
use tp6test\FrameworkTestCase;

/**
 * php think test --filter AdminServerTest::testFind
 */
class AdminServerTest extends FrameworkTestCase {

    public function testFind() {
        $admin = (new AdminModel())->find(['id' => 1]);
        $this->assertNotNull($admin);
        $admin = (new AdminModel())->where('id', 1)->find();
        $this->assertNotNull($admin);
    }
    
    public function testSelect() {
        $admins = (new AdminModel())->select();
        $this->assertTrue(count($admins) > 0);
    }
    
    public function testPagenation() {
        $this->assertTrue(1 == 1);
    }
    
    public function testCreate() {
        $this->assertTrue(1 == 1);
    }
    
    public function testUpdate() {
        $this->assertTrue(1 == 1);
    }
    
    public function testDelete() {
        $this->assertTrue(1 == 1);
    }
}